package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 中智诚黑名单
 * <p>
 * Created by Jerry on 2017/7/31.
 */
@Component
//@ConfigurationProperties(prefix = "zhongzhicheng")
//@PropertySource("classpath:properties/zhongzhicheng.properties")
@DisconfFile(targetDirPath = "disconf", filename = "zhongzhicheng.properties")
public class ZhongzhichengProperties {

    private String accountName;
    private String accountPwd;
    private String queryBlackUserUrl;

    @DisconfFileItem(name = "zhongzhicheng.accountName", associateField = "accountName")
    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    @DisconfFileItem(name = "zhongzhicheng.accountPwd", associateField = "accountPwd")
    public String getAccountPwd() {
        return accountPwd;
    }

    public void setAccountPwd(String accountPwd) {
        this.accountPwd = accountPwd;
    }

    @DisconfFileItem(name = "zhongzhicheng.queryBlackUserUrl", associateField = "queryBlackUserUrl")
    public String getQueryBlackUserUrl() {
        return queryBlackUserUrl;
    }

    public void setQueryBlackUserUrl(String queryBlackUserUrl) {
        this.queryBlackUserUrl = queryBlackUserUrl;
    }

}
